
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@ include file="/support/taglibs.jsp" %>
<stripes:layout-render name="/support/layout/standard.jsp" title="Researchers" page="researchers">
<stripes:layout-component name="contents">
   
   <jsp:useBean id="isernManager" scope="page"
           class="edu.hawaii.myisern.model.IsernManager"/>
 
<table>
        <th>      &nbsp; </th>
        <th>      Name </th>
        <th>      Organization </th>
        <th>      Email </th>
    <c:forEach items="${isernManager.researchers}" var="researcher" varStatus="loop"> 
        <tr><td><c:if test="${not empty researcher.pictureLink}">
          <img src="${researcher.pictureLink}" height=50/>
        </c:if>    
         </td>    
        <td>      ${researcher.name} </td>
        <td>      ${researcher.organization} </td>
        <td>      ${researcher.email} </td>
        <td><stripes:link href="ResearcherForm.action" event="preEdit">
                                Edit
                                <stripes:param name="id" value="${researcher.name}"/>
                            </stripes:link> </td> </tr>
    </c:forEach>
</table>   
    </stripes:layout-component>
</stripes:layout-render>
